//
//  UIImage+CLExtension.h
//
//  Created by danal on 3/2/12.
//  Copyright (c) 2012 . All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (CLExtension)

///  image缩放 newSize
- (UIImage *)resizeToSize:(CGSize)newSize;

/// image长宽等比缩放 newSize
- (UIImage *)scaleToSize:(CGSize)newSize;

/// image 比例缩放
- (UIImage *)scaleByFactor:(float)scaleBy;

/// 把 image 调整为可拉伸
- (UIImage *)resizableWithLeftCap:(CGFloat)dx topCap:(CGFloat)dy width:(CGFloat)w height:(CGFloat)h;

/// png格式转换为jpg格式
- (UIImage *)PNG2JPG;

/// Always draw the original image, without treating it as a template.
- (UIImage *)renderOriginal;



@end
